package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffImpowerTargetObjBizTypeDto
 * @使用场景
 */
@Data
public class BffImpowerTargetObjBizTypeDto implements Serializable {

    /**
     * 指标业务类型标识
     */
    @ApiModelProperty("指标业务类型标识")
    private String objectiveValueTypeCode;

    /**
     * 指标业务类型名称
     */
    @ApiModelProperty("指标业务类型名称")
    private String objectiveValueTypeName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffImpowerTargetObjBizTypeDto that = (BffImpowerTargetObjBizTypeDto) o;
        return objectiveValueTypeCode == that.objectiveValueTypeCode && objectiveValueTypeName == that.objectiveValueTypeName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), objectiveValueTypeCode, objectiveValueTypeName);
    }

}
